package cn.edu.njtc.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tb_patient_adverse_reaction")
public class PatientAdverseReaction {

    @TableId(type = IdType.AUTO)
    private Integer recordId;

    private Integer userId;

    private LocalDateTime reactionDate;

    private String reactionDescription;

    private String medicationInvolved;

    private String severity;

    private String notes;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated;

    @TableLogic
    private Boolean deleted;
}
